Public Types | |
| enum | XFCLOGFLAGS { XFCLOG_INFO = 1, XFCLOG_DATA = 2, XFCLOG_FLOW = 4, XFCLOG_ERR = 8, XFCLOG_WARN = 16, XFCLOG_CRIT = 32, XFCLOG_INDENT = 64, XFCLOG_UNDENT = 128, XFCLOG_ALL = 0xffffffff } |
| XFCLOGFLAGS can be used to mask out specific types of logging. More... | |
Public Member Functions | |
| XFCIMPORT | ~XFcLogger () |
| Destructor. | |
Static Public Member Functions | |
| XFCIMPORT XFcLogger * | create () |
| Static constructor. | |
| XFCIMPORT void | log (const CHAR *aTxt, XFCLOGFLAGS aFlag) |
| Logs a string, with a specific log entry type. | |
| XFCIMPORT void | log (const CHAR8 *aTxt, INT32 aLength, XFCLOGFLAGS aFlag) |
| Logs a data buffer as hex string values, with a specific log entry type. | |
| XFCIMPORT void | setMask (UINT32 aMask) |
| Sets logging mask. | |
| XFCIMPORT UINT32 | getMask () |
| Returns current logging mask. | |
| XFCIMPORT void | setFileSizeLimit (UINT32 aSizeLimit) |
| Sets the maximum size of the log file. | |
| XFCIMPORT UINT32 | getFileSizeLimit () |
| Returns the maximum size of the log file, in bytes. | |
| XFCIMPORT void | indent () |
| Indents log entries. | |
| XFCIMPORT void | undent () |
| Undents log entries. | |
| XFCIMPORT void | setLogLevel (INT aLevel) |
| Sets current log level for program flow. | |
| XFCIMPORT INT | getLogLevel () |
| Returns current log level for program flow. | |
Protected Member Functions | |
| UINT32 | findThreadNum () |
| Finds the number of the current thread. | |
| CHAR * | createFileName (UINT32 aThreadId) |
| Creates and returns a filename for a specific thread. | |
| void | writeTypeInfo (XFCLOGFLAGS aFlag, XFcFile *aFile) |
| Writes the type header with the given flag. | |
| void | doLog (const CHAR *aTxt, XFCLOGFLAGS aFlag) |
| Does the real logging. | |
| void | doLog (const CHAR8 *aTxt, INT32 aLength, XFCLOGFLAGS aFlag) |
| Does the real logging. | |
| void | doSetMask (UINT32 aMask) |
| Does the real set mask. | |
| UINT32 | doGetMask () |
| Does the real get mask. | |
| void | doSetFileSizeLimit (UINT32 aSizeLimit) |
| Does the real setFileSizeLimit. | |
| UINT32 | doGetFileSizeLimit () |
| Does the real getFileSizeLimit. | |
| void | doIndent () |
| Does the real indent. | |
| void | doUndent () |
| Does the real undent. | |
| void | doSetLogLevel (INT aLevel) |
| Does the real setLogLevel. | |
| INT | doGetLogLevel () |
| Does the real getLogLevel. | |
Protected Attributes | |
| INT | mNumThreads |
| Number of threads. | |
| UINT32 | mThreadIds [MAX_NUM_LOGTHREADS] |
| Thread ids. | |
| INT | mCurrentIndent [MAX_NUM_LOGTHREADS] |
| The current indentation level. | |
| INT32 | mFileSizeLimit [MAX_NUM_LOGTHREADS] |
| The current file size limit, default is -1 which means no limit. | |
| UINT32 | mLogFlags [MAX_NUM_LOGTHREADS] |
| The current log flags (mask). | |
| INT | mLoggingStarted [MAX_NUM_LOGTHREADS] |
| Is logging started. | |
| INT | mFileSizeLimitExceeded [MAX_NUM_LOGTHREADS] |
| Is file size exceeded. | |
| INT | mLogLevel [MAX_NUM_LOGTHREADS] |
| The current logging level for program flow. | |
|
|
XFCLOGFLAGS can be used to mask out specific types of logging.
|
|
|
Destructor.
|
|
|
Static constructor.
|
|
|
Creates and returns a filename for a specific thread.
|
|
|
Does the real getFileSizeLimit.
|
|
|
Does the real getLogLevel.
|
|
|
Does the real get mask.
|
|
|
Does the real indent.
|
|
||||||||||||||||
|
Does the real logging.
|
|
||||||||||||
|
Does the real logging.
|
|
|
Does the real setFileSizeLimit.
|
|
|
Does the real setLogLevel.
|
|
|
Does the real set mask.
|
|
|
Does the real undent.
|
|
|
Finds the number of the current thread.
|
|
|
Returns the maximum size of the log file, in bytes.
|
|
|
Returns current log level for program flow.
|
|
|
Returns current logging mask.
|
|
|
Indents log entries.
|
|
||||||||||||||||
|
Logs a data buffer as hex string values, with a specific log entry type.
|
|
||||||||||||
|
Logs a string, with a specific log entry type.
|
|
|
Sets the maximum size of the log file.
|
|
|
Sets current log level for program flow.
|
|
|
Sets logging mask.
|
|
|
Undents log entries.
|
|
||||||||||||
|
Writes the type header with the given flag.
|
|
|
The current indentation level.
|
|
|
The current file size limit, default is -1 which means no limit.
|
|
|
Is file size exceeded.
|
|
|
The current log flags (mask).
|
|
|
Is logging started.
|
|
|
The current logging level for program flow.
|
|
|
Number of threads.
|
|
|
Thread ids.
|
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch | ||